import Layout from '@/views/layout'

export default {
  path: '/system',
  component: Layout,
  meta: { perm: 'm:sys', title: '系统管理', icon: 'chart', sort: 8 },
  children: [
    {
      path: 'user_manage',
      name: 'user_manage',
      component: () => import('@/views/system/user/index'),
      meta: { perm: 'm:sys:user', title: '用户管理', icon: 'chart', noCache: true }
    },
    {
      path: 'role_manage',
      name: 'role_manage',
      component: () => import('@/views/system/role/index'),
      meta: { perm: 'm:sys:role', title: '角色管理', icon: 'chart', noCache: true }
    },
    {
      hidden: true,
      path: 'role_manage/:roleId/assign-perm',
      name: 'role_manage_assign_perm',
      component: () => import('@/views/system/role/assign-perm'),
      meta: { hiddenTag: true, title: '角色授权' }
    },
    {
      path: 'perm_manage',
      name: 'perm_manage',
      component: () => import('@/views/system/perm/index'),
      meta: { perm: 'm:sys:perm', title: '权限管理', icon: 'chart', noCache: true }
    }
  ]
}
